<?php

class iheartcomix_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('iheartcomix');
    }
    
        
    
}

class iheartcomix_post_scraper extends PostScraper
{

    function getDate()
    {

        $date_node = $this->xpath->query("//html//body//span[@class='submitted']")->item(0)->nodeValue;   
        $date_node = explode('-', $date_node);
        $date_node = $date_node[1].$date_node[2];
        
        if (strlen($date_node) > 4) 
        {
            $date = date('Y-m-d H:i:s', strtotime($date_node));
            return $date;
        }        
    }
    
    function getTitle()
    {
        return $this->xpath->query("//div[@id='content']//h2")->item(0)->nodeValue;
    }
}

?>